HAL CORDIC types migration ¶
This section provides information about the HAL CORDIC types migration.
HAL CORDIC configuration type definition ¶
|
HAL1 |
HAL2 |
|---|---|
typedef struct
{
uint32_t Function;
uint32_t Scale;
uint32_t InSize;
uint32_t OutSize;
uint32_t NbWrite;
uint32_t NbRead;
uint32_t Precision;
}CORDIC_ConfigTypeDef;
|
typedef struct
{
hal_cordic_function_t function;
hal_cordic_scaling_factor_t scaling_factor;
hal_cordic_in_width_t in_width;
hal_cordic_out_width_t out_width;
hal_cordic_nb_arg_t nb_arg;
hal_cordic_nb_result_t nb_result;
hal_cordic_precision_t precision;
} hal_cordic_config_t;
|
Related concepts:
HAL CORDIC callback type definition ¶
|
HAL1 |
HAL2 |
|---|---|
pCORDIC_CallbackTypeDef
|
hal_cordic_cb_t
|
Related concept: Replaced TypeDef suffix with _t in type names
HAL CORDIC handle type definition ¶
|
HAL1 |
HAL2 |
|---|---|
CORDIC_HandleTypeDef
|
hal_cordic_handle_t
|
Related concepts:
HAL CORDIC callback ID type definition ¶
|
HAL1 |
HAL2 |
|---|---|
typedef enum
{
HAL_CORDIC_ERROR_CB_ID,
HAL_CORDIC_CALCULATE_CPLT_CB_ID,
HAL_CORDIC_MSPINIT_CB_ID,
HAL_CORDIC_MSPDEINIT_CB_ID,
} HAL_CORDIC_CallbackIDTypeDef;
|
Removed
|
Related concepts:
HAL CORDIC state type definition ¶
|
HAL1 |
HAL2 |
|---|---|
typedef enum
{
HAL_CORDIC_STATE_RESET,
HAL_CORDIC_STATE_READY,
HAL_CORDIC_STATE_BUSY,
HAL_CORDIC_STATE_ERROR
} HAL_CORDIC_StateTypeDef;
|
typedef enum
{
HAL_CORDIC_STATE_RESET ,
HAL_CORDIC_STATE_INIT ,
HAL_CORDIC_STATE_IDLE ,
HAL_CORDIC_STATE_ACTIVE,
HAL_CORDIC_STATE_ABORT
} hal_cordic_state_t;
|
Related concept: Revised and optimized HAL state machine